<?php
include_once("../../../../../config.php");


$table_suffix="renewal_log";
$table=$table_Prefix.$table_suffix;
$new_detail_nid=$_GET['nid'];

    $this_detail = select_one_line_all_items($table,"nid = $new_detail_nid");


    unlink(ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$this_detail['certificate']);


    $sql = " DELETE FROM $table WHERE nid=$new_detail_nid and utoken = '".$_SESSION['utoken']."'";
    $query=mysql_query($sql) or die  ("error:".mysql_error());


if(!mysql_error())
{
    echo 1;//表示成功
}
else
{
    echo "删除log失败".$sql;
}


?>


